package com.ibuonline.b2b.entity;

import java.io.Serializable;

public class ArticleDown implements Serializable {

	private static final long serialVersionUID = -5846255198345767489L;

	//fields
	private java.lang.Integer id;
	private java.lang.Integer catId;
	private java.lang.String title;
	private java.lang.String description;
	private java.lang.String keywords;
	private java.lang.String author;
	private java.lang.String source;
	private java.lang.String sourceLink;
	private java.lang.Boolean picture;
	private java.lang.String content;
	private java.lang.Integer viewCount;
	private java.lang.String status;
	private java.sql.Timestamp publishDate;
	private java.sql.Timestamp lastupdate;
	private java.lang.String industry;
	private java.lang.Integer displayOrder;

	//default constructor
	public ArticleDown() {
	}

	//getter
	public java.lang.Integer getId() {
		return id;
	}
	public java.lang.Integer getCatId() {
		return catId;
	}
	public java.lang.String getTitle() {
		return title;
	}
	public java.lang.String getDescription() {
		return description;
	}
	public java.lang.String getKeywords() {
		return keywords;
	}
	public java.lang.String getAuthor() {
		return author;
	}
	public java.lang.String getSource() {
		return source;
	}
	public java.lang.String getSourceLink() {
		return sourceLink;
	}
	public java.lang.Boolean isPicture() {
		return picture;
	}
	public java.lang.String getContent() {
		return content;
	}
	public java.lang.Integer getViewCount() {
		return viewCount;
	}
	public java.lang.String getStatus() {
		return status;
	}
	public java.sql.Timestamp getPublishDate() {
		return publishDate;
	}
	public java.sql.Timestamp getLastupdate() {
		return lastupdate;
	}
	public java.lang.String getIndustry() {
		return industry;
	}
	public java.lang.Integer getDisplayOrder() {
		return displayOrder;
	}

	//setter
	public void setId(java.lang.Integer id) {
		this.id = id;
	}
	public void setCatId(java.lang.Integer catId) {
		this.catId = catId;
	}
	public void setTitle(java.lang.String title) {
		this.title = title;
	}
	public void setDescription(java.lang.String description) {
		this.description = description;
	}
	public void setKeywords(java.lang.String keywords) {
		this.keywords = keywords;
	}
	public void setAuthor(java.lang.String author) {
		this.author = author;
	}
	public void setSource(java.lang.String source) {
		this.source = source;
	}
	public void setSourceLink(java.lang.String sourceLink) {
		this.sourceLink = sourceLink;
	}
	public void setPicture(java.lang.Boolean picture) {
		this.picture = picture;
	}
	public void setContent(java.lang.String content) {
		this.content = content;
	}
	public void setViewCount(java.lang.Integer viewCount) {
		this.viewCount = viewCount;
	}
	public void setStatus(java.lang.String status) {
		this.status = status;
	}
	public void setPublishDate(java.sql.Timestamp publishDate) {
		this.publishDate = publishDate;
	}
	public void setLastupdate(java.sql.Timestamp lastupdate) {
		this.lastupdate = lastupdate;
	}
	public void setIndustry(java.lang.String industry) {
		this.industry = industry;
	}
	public void setDisplayOrder(java.lang.Integer displayOrder) {
		this.displayOrder = displayOrder;
	}

	//equals method
	public boolean equals(Object other) {
		if (this == other)
			return true;
		if (!(other instanceof ArticleDown))
			return false;

		final ArticleDown articleDown = (ArticleDown)other;
		if (!this.id.equals(articleDown.getId()))
			return false;

		return true;
	}

	//hashCode method
	public int hashCode() {
		StringBuffer keys = new StringBuffer();
		keys.append(id).append(",");
		if (keys.length() > 0)
			keys.deleteCharAt(keys.length() - 1);
		return keys.toString().hashCode();
	}

	//toString method
	public String toString() {
		return new StringBuilder("ArticleDown[")
			.append("id=").append(id).append(", ")
			.append("catId=").append(catId).append(", ")
			.append("title=").append(title).append(", ")
			.append("description=").append(description).append(", ")
			.append("keywords=").append(keywords).append(", ")
			.append("author=").append(author).append(", ")
			.append("source=").append(source).append(", ")
			.append("sourceLink=").append(sourceLink).append(", ")
			.append("picture=").append(picture).append(", ")
			.append("content=").append(content).append(", ")
			.append("viewCount=").append(viewCount).append(", ")
			.append("status=").append(status).append(", ")
			.append("publishDate=").append(publishDate).append(", ")
			.append("lastupdate=").append(lastupdate).append(", ")
			.append("industry=").append(industry).append(", ")
			.append("displayOrder=").append(displayOrder).append("]").toString();
	}
}